using UnityEngine;

public class bgAutomove : MonoBehaviour
{
	public Transform target;

	public float smoother;

	private void Start()
	{
	}

	private void FixedUpdate()
	{
		Vector3 b = new Vector3(target.position.x, target.position.y, 0f);
		base.transform.position = Vector3.Slerp(base.transform.position, b, smoother * Time.deltaTime);
	}
}
